if playrec('isInitialised') == 1
    playrec('reset');
end

recDevice = select_rec_device();
playDevice = select_play_device();
rate = input('Enter fs:  ');

playrec('init', rate, playDevice, recDevice);